//
//  CommonAddressVC.m
//  Meum
//
//  Created by 黄卫 on 17/2/27.
//  Copyright © 2017年 huangwei. All rights reserved.
//

#import "CommonAddressVC.h"
#import "AddressCell.h"
@interface CommonAddressVC ()<UITableViewDelegate,UITableViewDataSource>
@property(nonatomic,strong)UITableView *tableView;
@end

@implementation CommonAddressVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view addSubview:self.tableView];
    
    
    
}

-(UITableView *)tableView{
    if (!_tableView) {
        _tableView = [UITableView plainTableView];
        _tableView.rowHeight = 150;
        _tableView.delegate = self;
        _tableView.dataSource = self;
    }
    return _tableView;
}

#pragma mark UITableViewDelegate
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    AddressCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (!cell) {
        cell = [[AddressCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];
    }
    cell.nameLab.text = @"张无忌";
    cell.phoneNumLab.text = @"13552356789";
    cell.addressLab.text = @"湖北武当山登仙殿";
    
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
